package com.xk.timerapp.data;

import androidx.room.Dao;
import androidx.room.Delete;
import androidx.room.Insert;
import androidx.room.Query;
import androidx.room.Update;

import java.util.List;

@Dao
public interface AlarmClockDao {
    @Insert
    void insertAlarmClock(AlarmClock alarmClock);

    @Update
    void updateAlarmClock(AlarmClock alarmClock);

    @Delete
    void deleteAlarmClock(AlarmClock alarmClock);

    @Query("SELECT * FROM AlarmClock")
    List<AlarmClock> getAllAlarmClocks();

    // 其他查询方法可以根据需要添加
}